package com.oracle.malldemo.service;

import com.oracle.malldemo.domain.Users;

import java.util.List;

public interface UsersService {

    //1.添加单个用户
    boolean save(Users u);

    //2.更新单个用户
    boolean update(Users u);

    //3.查询单个用户
    Users queryUserByUid(Integer uid);

    //4.查询用户集合
    List<Users> queryAllUsers();

    //5.删除单个用户
    boolean delete(Integer uid);

    //6.用户注册
    boolean reg(Users u);

    //7.用户登录
    Users login(String username,String password);
}
